<template>
  <div class="tag-all">
    <div v-for="(itme,i) in 3" :key="i" class="tag-one">
      <van-tag
        v-if="show.primary"
        closeable
        size="medium"
        type="primary"
        color="#f5f5f5"
        @close="close('primary')"
      >
        <span style="color:#212121">银泰服装城</span>
      </van-tag>
    </div>
  </div>
</template>

<script>
export default {
  data() {
    return {
      // 标签开关
      show: {
        primary: true,
        success: true
      }
    };
  },
  methods: {
    // 关闭标签
    close(type) {
      this.show[type] = false;
    }
  }
};
</script>

<style lang = "less" scoped>
.van-icon-cross[data-v-3dce2c05]:before {
  color: #d8d8d8;
}
.tag-all {
  position: fixed;
  left: 0;
  top: 72px;
  z-index: 1;
  display: flex;
  height: 46.5px;
  border: 1px #f0f0f0 solid;
  border-width: 1px 0;
  background-color: #fff;
  z-index: 70;
  width: 100%;
  .tag-one {
    display: inline-block;
    display: flex;
    align-items: center;
    margin: 0 9px;
    /deep/.van-tag--medium {
      height: 23px;
      font-size: 12px;
    }
  }
}
</style>